import React, { lazy } from 'react';
const Home = lazy(() => import('@/pages/home/index'))
const User = lazy(() => import('@/pages/user/index'))
const routers = [
  {
    path:'/home',
    name:'主页',
    component:Home
  },
  {
    path:'/user',
    name:'用户',
    component:User
  }
]
export  default {
  routers
}